home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TPWENG
/
GOTOLOCK.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-22
|
730b
|
32 lines
program GotoLock;
uses PXEngine, WinCrt;
const TableName = 'Table';
var PxErr: Integer;
TblHandle: TableHandle;
RecHandle: RecordHandle;
LckHandle: Integer;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
PX(PXRecBufOpen(TblHandle, RecHandle));
PX(PXNetRecLock(TblHandle, LckHandle));
(* Go to record previously locked *)
PxErr := PXNetRecGotoLock(TblHandle, LckHandle);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr));
PX(PXNetRecUnlock(TblHandle, LckHandle));
PX(PXRecBufClose(RecHandle));
PX(PXTblClose(TblHandle));
PX(PXExit);
end.